package com.atguigu.decorator;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description: 被装饰者 - 抽象类
 * @create: 2022-02-17 14:44
 **/
public abstract class Drink {
    /**
     * 描述
     */
    public String des;
    /**
     * 价格
     */
    private float price = 0.0f;

    /**
     * 计算费用的抽象方法
     * 注：由子类来实现
     * @return 费用
     */
    public abstract float cost();



    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }
}
